﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Inapplicable.aspx.cs" Inherits="PPAP.Web.Part.Inapplicable" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<HTML>
	<HEAD>
		<title>CreatPPAR</title>
		<script language="javascript">
		    function add() {
		        url = "PPAPTasksEdit.aspx";
		        PopUpWindow(url, 400, 150, 580, 400);
		    }
		    function edit(id) {
		        url = "InapplicableSet.aspx?RID=" + id;
		        // window.open(url, 'newwindow', 'left=200,top=60,width=970,height=600, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no');
		        PopUpWindow(url, 230, 60, 730, 550);
//		        window.location.href = url;
		    }
		</script>
	</HEAD>
	<body  style="font-family: Arial, Helvetica, sans-serif;"  >
		<form id="Form1" method="post" runat="server">
			<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
				<tr>
					<td><asp:datagrid id="dgList" HeaderStyle-BackColor="#E7E8E8" HeaderStyle-Font-Bold="true" HeaderStyle-Height="32px" Width="100%" OnLoad="dgLoad" AutoGenerateColumns="False" Runat="server">
							<Columns>
								<asp:BoundColumn DataField="rownum" HeaderText="No.">
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="pparno" HeaderText="PPAR No.">
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
								</asp:BoundColumn>
                                <asp:BoundColumn DataField="suppliername" HeaderText="Supplier name">
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
								</asp:BoundColumn>
                                <asp:BoundColumn DataField="color" HeaderText="Color">
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="bdntpartno" HeaderText="Part No.">
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="bdntpartname" HeaderText="Part name">
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
								</asp:BoundColumn>
                                <asp:BoundColumn DataField="bdntrevisionno" HeaderText="Revision No.">
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
								</asp:BoundColumn>
                                <asp:BoundColumn DataField="bdntrevisionstatus" HeaderText="Revision status">
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
								</asp:BoundColumn>

								<asp:HyperLinkColumn Visible="false" Text="Edit" DataNavigateUrlField="ID" DataNavigateUrlFormatString="javascript:edit('{0}')"
									HeaderText="Action">
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
								</asp:HyperLinkColumn>
							    <asp:TemplateColumn ItemStyle-HorizontalAlign="Center">
                                
                                    <HeaderTemplate>
                                        Action
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:ImageButton ID="ImageButton1" ToolTip='View' PostBackUrl=<%# "javascript:edit('"+Eval("ID")+"')" %> ImageUrl='<%# ShowImage(Eval("status").ToString()) %>' runat="server" />
                                    </ItemTemplate>
                                
                                </asp:TemplateColumn>
							</Columns>

<HeaderStyle BackColor="#E7E8E8" Font-Bold="True" Height="32px"></HeaderStyle>
						</asp:datagrid></td>
				</tr>
                <tr><td align="center">
                  <webdiyer:AspNetPager ID="AspNetPager2" runat="server" Width="100%"  CssClass="paginator"
                                ShowPageIndexBox="Always" 
            PageIndexBoxType="DropDownList" TextBeforePageIndexBox="goto"
                                HorizontalAlign="Center" PageSize="20" EnableTheming="true" 
                        AlwaysShow="True" FirstPageText="|&lt;"
                                LastPageText="&gt;|" NextPageText="&gt;" 
                        PrevPageText="&lt;" SubmitButtonText="Go"
                                TextAfterPageIndexBox="page" 
                        InvalidPageIndexErrorMessage="Page index is not effective numerical！" 
                        onpagechanged="AspNetPager2_PageChanged" 
                        PageIndexOutOfRangeErrorMessage="Page index beyond range" 
            BackColor="#E7E8E8" >
                            </webdiyer:AspNetPager>
                </td></tr>
			</table>
          
		</form>
	</body>
</HTML>
